package com.itheima.variable;

public class Demo1Operator {
    public static void main(String[] args) {
        System.out.println(10 + 20);
        System.out.println(10 - 20);
        System.out.println(10 * 20);

        System.out.println("-----------------------");
        System.out.println(10 / 2); //5
        System.out.println(10 / 3); //3 整数相除 只能得到整数
        System.out.println(10 / 3.0); //3.333333  加入小数才能得到小数
        System.out.println(10.0 / 3); //3.333333
        System.out.println("------------------------");

        System.out.println(5 % 2);//5 / 32 =商 2 ,余数 1
    }
}
